package com.dm.client;

import com.dm.config.DmConfiguration;
import com.dm.fallback.DmBaseKeywordSortClientFallBack;
import com.dm.pojo.DmBaseKeywordSort;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
* Feign
*/
@FeignClient(name = "dm-base-provider", configuration = DmConfiguration.class, fallback = DmBaseKeywordSortClientFallBack.class)
public interface DmBaseKeywordSortClient {
@RequestMapping(value = "/getDmBaseKeywordSortById",method = RequestMethod.POST)
public DmBaseKeywordSort getDmBaseKeywordSortById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmBaseKeywordSortListByMap",method = RequestMethod.POST)
public List<DmBaseKeywordSort>	getDmBaseKeywordSortListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmBaseKeywordSortCountByMap",method = RequestMethod.POST)
public Integer getDmBaseKeywordSortCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmBaseKeywordSort",method = RequestMethod.POST)
public Integer qdtxAddDmBaseKeywordSort(@RequestBody DmBaseKeywordSort dmBaseKeywordSort)throws Exception;

@RequestMapping(value = "/qdtxModifyDmBaseKeywordSort",method = RequestMethod.POST)
public Integer qdtxModifyDmBaseKeywordSort(@RequestBody DmBaseKeywordSort dmBaseKeywordSort)throws Exception;
}

